package cn.huiyunche.base.service.enums;

/**
 * @ClassName: QuoteStatusEnum
 * @Description: 承运方报价状态
 * @author: Aaron
 * @date: 2016年5月30日 下午1:41:47
 */
public enum WayBillQuoteStatusEnum {

    BID(10, "待选择"),//已报价
    UNSELECTED(20, "未选择"),//未选择
    SELECTED(30, "已选择"),//已选中
    ABANDONED(40, "作废");//已作废

    private final int value;
    private final String text;

    WayBillQuoteStatusEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static WayBillQuoteStatusEnum getByValue(int value) {
        for (WayBillQuoteStatusEnum temp : WayBillQuoteStatusEnum.values()) {
            if (value == temp.getValue()) {
                return temp;
            }
        }
        return null;
    }
}
